package org.baoping.demo.dubbo.demo.impl;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.baoping.commom.api.CommonResult;
import org.baoping.demo.service.DemoService;

/**
 * @author HeZeMin
 * @className DemoServiceImpl
 * @description duboo provider 实现类
 * @date 2021/1/15 10:02
 */
@Slf4j
@Service// 注意包名，apache dubbo
public class DemoServiceImpl implements DemoService {
    @Override
    public CommonResult<String> test(String paramStr) {
        log.info("dubbo 生产者,{}", paramStr);
        return CommonResult.success(paramStr, "dubbo 接口调用成功");
    }
}